<?php
if(defined('IZ_ACCNAME')) {
    $credentials = IZ_CALMODE."\n".
                   $dbhost."\n".
                   $dbuser."\n".
                   $dbpass."\n".
                   $dbdatabase;
    $key = 'PQ]3uVkSUrWC2Vmp';
    $td = mcrypt_module_open('rijndael-128', '', 'cbc', '');
    if(!$td) {
      echo 'AES not supported';
    } else {
      $ks = mcrypt_enc_get_key_size($td);
      $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
      mcrypt_generic_init($td, $key, $iv);
      $encrypted = mcrypt_generic($td, $credentials);
      mcrypt_generic_deinit($td);
      mcrypt_module_close($td);
    }
    echo base64_encode($iv),"\n",base64_encode($encrypted),"\n",base64_encode(IZ_SALT);
}
?>